home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
macros
/
tip
/
ts-crm.tip
< prev
next >
Wrap
Text File
|
1993-09-15
|
3KB
|
117 lines
% This macro source file is from the four volume series
% "TeX in Practice" by Stephan von Bechtolsheim, published
% 1993 by Springer-Verlag, New York.
% Copyright 1993 Stephan von Bechtolsheim.
% No warranty or liability is assumed.
% This macro may be copied freely if no fees other than
% media cost or shipping charges are charged and as long
% as this copyright and the following source code itself
% is not changed. Please see the series for further information.
%
% Version: 1.0
% Date: May 1, 1993
%
%
% This source code is documented in 31.2.11, p. III-607.
% Original source in file "pp2.TEX", starting line 1114.
\wlog{L: "ts-crm.tip" ["pp2.TEX," l. 1114, p. III-607]}%
% This file DOES belong to format "texip."
\InputD{pm-wrc.tip}
\InputD{ts-page2.tip}
\catcode`\@ = 11
\def\PageRef #1{%
\@PageRef{#1}%
\@PageRefResult
\@PrintAfterLabel
}
\def\Page #1{%
\PageShortForm~\@PageRef{#1}%
\@PageRefResult
\@PrintAfterLabel
}
\def\OnPage #1{%
\@PageRef{#1}%
\if@CloseByReference
on \@PageRefResult\space page%
\else
on \PageShortForm~\@PageRefResult
\fi
\@PrintAfterLabel
}
\def\AtPage #1{%
\@PageRef{#1}%
\if@CloseByReference
at \@PageRefResult\space page%
\else
at \PageShortForm~\@PageRefResult
\fi
\@PrintAfterLabel
}
\def\CommaPage #1{%
\@PageRef{#1}%
\if@CloseByReference
\space on \@PageRefResult\space page%
\@PrintAfterLabel
\else
,\space
\PageShortForm~\@PageRefResult
\@PrintAfterLabel
\fi
}
\def\CommaPageComma{%
\@PageRef{,}%
\if@CloseByReference
\space on \@PageRefResult\space page\space
\else
,\space
\PageShortForm~\@PageRefResult
\@PrintAfterLabel
\space
\fi
}
\def\PageShortForm{p.}
\def\PagesShortForm{pp.}
\def\see #1#2{%
see \@SeeSee{#1}{#2}%
}
\def\See #1#2{%
See \@SeeSee{#1}{#2}%
}
\def\@SeeSee #1#2{%
\SectionRef{#1}%
\if\StringsEqualConditional{#2}{,}%
\CommaPageComma
\let\@SeeSeeEnd = \ignorespaces
\else
\CommaPage
#2%
\let\@SeeSeeEnd = \relax
\fi
\@SeeSeeEnd
}
\def\ChapterRef #1{%
Chapter~\Ref{#1}%
}
\def\SectionRef #1{%
\Ref{#1}%
}
\def\ItemRef #1{%
item~\Ref{#1}%
}
\def\FigRef #1{%
Fig.~\Ref{#1}%
}
\def\FigureRef #1{%
Figure~\Ref{#1}%
}
\def\TableRef #1{%
Table~\Ref{#1}%
}
\def\AppendixRef #1{%
Appendix~\Ref{#1}%
}
\def\PagesRef #1#2{%
\PagesShortForm~\PageRef{#1}--\PageRef{#2}%
}
\catcode`\@ = 12